package threading;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadDemo24 {
    public static void main(String[] args) {
        //创建出固定包含10个线程的线程池
       ExecutorService pool = Executors.newFixedThreadPool(10);
       //添加任务到线程中
       pool.submit(new Runnable(){
           @Override
           public void run() {
               System.out.println("hello");
           }
       });
    }
}
